/********************************************************************
filename : wolf_board_test.h
discript : This file offer board test function.
version  : V0.0
editor   : Icy - dreamwolf
time     : 2014.9.2
statement: This file is modified by dreamwolf under LGPL,you could use 
           it free.We cann't ensure there is no error in this file,and
				   if you detect an error please contact us freely,it is so a-
					 ppreciate for your help to improve our code that could help 
					 more people to use it safty.
contact  : edreamtek@163.com
           www.edreamtek.com
********************************************************************/

#ifndef __WOLF_BOARD_TEST_H__
#define __WOLF_BOARD_TEST_H__


#include "stm32f0xx.h"

#include "wolf_typedefine.h"
#include "wolf_delay.h"
#include "wolf_led.h"
#include "wolf_usart.h"
#include "wolf_key.h"
#include "wolf32f031_board_pinmap.h"
#include "wolf_iic1_common.h"
#include "wolf_iic_AT24C64.h"
#include "wolf_iic_MMA7455L.h"
#include "wolf_LCD9341.h"
#include "wolf_buzzer.h"
#include "wolf_adc.h"
#include "wolf_RTC.h"
#include "wolf_pic.h"



#define	STATE_BAR_HEIGHT		16		//Define state bar height



typedef struct{
	uint16_t 	height;								//LCD height pixel
	uint16_t 	width;								//LCD width pixel
	uint32_t 	backup_color;					//Desktop backup color
	uint8_t 	state_bar_height;			//State bar height,display on the bottom of LCD
	uint32_t 	state_bar_color;			//State bar color
	uint8_t		H_icon_number;				//Icon number in H direction
	uint8_t		V_icon_number;				//Icon number in V direction
	uint8_t 	active_H_index;				//Active icon H index
	uint8_t 	active_V_index;				//Active icon	B index
	uint8_t		refresh_flag;
} DesktopBackup;





void wolf_main_desktop(void);

void wolf_main_desktop_init(void);

void wolf_main_desktop_disp(void);

void wolf_main_desktop_backup(void);

void wolf_main_desktop_status_bar(void);

void wolf_main_desktop_icon(void);

void wolf_main_desktop_input_check(void);

void wolf_main_desktop_logic_change(void);

void wolf_app_input_check(void);

void wolf_app_logic_change(void);

void wolf_app_key_led(void);

void wolf_app_buzzer(void);

void wolf_app_AT24C64(void);

void wolf_app_ADC(void);

void wolf_app_RTC(void);

void wolf_app_MMA7455(void);



#endif
